package sns.action;

import sns.service.UserService;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class LogoutAction extends ActionSupport {

	// injection
	private UserService userService;
	private Integer logoutSuccess = 3;

	public String execute() {

		userService.userLogout();
		return ActionSupport.SUCCESS;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public void setLogoutSuccess(Integer logoutSuccess) {
		this.logoutSuccess = logoutSuccess;
	}

	public Integer getLogoutSuccess() {
		return logoutSuccess;
	}

}
